package BufferStream;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.IOException;

public class Bufferedread_study {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("C:\\Users\\啦啦啦\\Desktop\\b.txt"));
        /*String line = br.readLine();
        //使用readline读取一行的数据
        System.out.println(line);*/
        //也可以
        String line;
        while((line = br.readLine())!=null)
        {
            System.out.println(line);
        }
        br.close();
    }
}
